package com.guit.demo.client.microevents;

import com.google.inject.Inject;

import com.guit.demo.client.alerter.Alerter;
import com.guit.demo.client.main.MainPresenter;
import com.guit.demo.client.microevents.MicroeventsPresenter.MicroeventsBinder;
import com.guit.junit.GuitTest;

import org.junit.Before;
import org.junit.Test;

public class TestMicroeventsPresenter extends GuitTest {

  @Inject
  MicroeventsPresenter presenter;

  @Override
  protected void configure() {
    mock(MicroeventsBinder.class);
    mock(MainPresenter.class);
    mock(Alerter.class);
  }

  @Override
  @Before
  public void setUp() {
    super.setUp();
    presenter.go(null);
  }

  @Test
  public void testPanelClick() {
    presenter.panel$click("guit");
  }

  @Test
  public void testRender() {
    presenter.render$click();
  }
}
